#include "stdafx.h"
#include "standard/narray.h"

int in_array(std::string key, std::map<unsigned int, std::string> arr)
{
    std::map<unsigned int, std::string>::iterator itor;
    
    for (itor=arr.begin(); itor!=arr.end(); itor++)
    {
        if (key.compare(itor->second) == 0) return true;
    }
        
    return false;
}
